<template>
  <div class="all">
    <div class="top">
      <div class="bk">
        <b href="#" class="denglu" @click="navigateMyList">点此进入</b>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter, useRoute } from 'vue-router'

const router = useRouter();
const route = useRoute();

/**
 * 跳转
 */
const navigateMyList = () => {
  console.log('当前路由：', route)
  router.push({ path: "/media/my-list" });
}
</script>

<style scoped>
.all {
  position: relative;
  height: 100vh;
}

.top {
  width: 100%;
  height: 100vh;
}

.bk {
  margin: 0 auto;
  background: url("@/assets/bg.png") no-repeat;
}


.denglu {
  position: absolute;
  top: 85%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 60px;
  line-height: 90px;
  text-align: center;
  color: #fff;
  font-size: 25px;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 400%;
  border-radius: 60px;
  display: flex;
  justify-content: center;
  align-items: center;

}

.denglu:hover {
  animation: animate 8s linear infinite;
}

@keyframes animate {
  0% {
  }

  100% {
    background-position: 400%;
  }
}

a {
  text-decoration: none;
  color: #fff;
}
</style>
